<form style="display: none;" target="_self" method="post" action="<?php echo $whmApi->ipDefaultPort.'/login'; ?>">
	<input type="text" name="user" value="<?php echo $whmApi->getWhmAccount()->username; ?>" />
	<input type="password" name="pass" value="<?php echo $whmApi->getWhmAccount()->PlainPass; ?>" />
</form>

<script>
	$('form').submit();
</script>